/*
* 质量核验api
* */

import 'package:center_beijing/common/http_util.dart';

/*
* 质量核验列表
* */
getQualityList(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_elementSpotCheckHandler/getElementSpotCheckExList",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 发起核验任务流程
* */
saveElementSpotCheck(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_elementSpotCheckHandler/saveElementSpotCheck",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 保存质量核验
* */
saveElementSpotCheckInfo(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_elementSpotCheckInfoHandler/saveElementSpotCheckInfo",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 获取抽检详情
* */
getElementSpotCheckEx(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_elementSpotCheckHandler/getElementSpotCheckEx",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 删除抽检构件详情
* */
deleteElementSpotCheckInfo(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_elementSpotCheckInfoHandler/deleteElementSpotCheckInfo",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}


/*
* 删除抽检列表
* */
deleteElementSpotCheck(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_elementSpotCheckHandler/deleteElementSpotCheck",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 提交抽检
* */
submitElementSpotCheck(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_elementSpotCheckHandler/submitElementSpotCheck",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}



